﻿using System;
using System.Runtime.Serialization;

namespace EDTS.Model.Weixin
{
    [DataContract]
    public class WxMessageModel:MBase
    {
        [Model]
        [DataMember]
        public Guid AppGuid { get; set; }
        [Model]
        [DataMember]
        public Nullable<int> UserID { get; set; }
        [Model]
        [DataMember]
        public string Receiver { get; set; }
        [Model]
        [DataMember]
        public string MsgType { get; set; }
        [Model]
        [DataMember]
        public string Description { get; set; }
        [Model]
        [DataMember]
        public System.DateTime SendTime { get; set; }
        [Model]
        [DataMember]
        public Nullable<System.DateTime> CompleteOn { get; set; }
        [Model]
        [DataMember]
        public string ErrMsg { get; set; }
        [Model]
        [DataMember]
        public string Result { get; set; }
        [Model]
        [DataMember]
        public bool Safe { get; set; }
    }

    [DataContract]
    public class WxMessageCollection:ModelCollectionBase<WxMessageModel>{}

    public enum WxMessageStatus
    {
        Waiting =1, //待发
        Failed=5,  //发送出错
        Success=9 //发送成功
    }

    public class WxMessageQuery : QueryBase
    {
        public int Status { get; set; }
    }
}
